package com.silverbox.waimai.service.goodscart;

import java.util.List;

import com.silverbox.waimai.entity.GoodsCart;
import com.silverbox.waimai.entity.GoodsCartDetail;

public interface GoodsCartDetailService {
	/**
	 * 新增购物车明细
	 * 
	 * @param goodsCartDetails
	 * @param goodsCartID
	 */
	void addGoodsCartDetail(List<GoodsCartDetail> goodsCartDetails, Integer goodsCartID);

	/**
	 * 更新购物车明细
	 * 
	 * @param GoodsCartDetail
	 * @return
	 */
	void updateGoodsCartDetail(GoodsCartDetail goodsCartDetail);

	/**
	 * 删除购物车明细
	 * 
	 * @param id
	 */
	void deleteGcDetailByGcId(Integer goodCartId);

	/**
	 * 清空购物车明细
	 * 
	 * @param goodsCartDto
	 */
	void removeGoodsCartDetail(GoodsCart goodsCart);

    List<GoodsCartDetail> getGoodsCartDetailByCartId(Integer goodsCartId);
}
